package com.maimang.platform.crm.config;

/**
 * 钉钉开放平台接口URL地址
 */
public class URLConstant {
	/**
	 * 钉钉网关gettoken地址
	 */
	public static final String GET_TOKKEN = "https://oapi.dingtalk.com/gettoken";

	/**
	 * 获取用户在企业内userId的接口URL
	 */
	public static final String GET_USER_INFO = "https://oapi.dingtalk.com/user/getuserinfo";

	/**
	 * 获取用户姓名的接口url
	 */
	public static final String GET_USER_NAME = "https://oapi.dingtalk.com/user/get";
	/**
	 * 获取部门用户
	 */
	public static final String USER_SIMPLELIST = "https://oapi.dingtalk.com/user/simplelist";
	/**
	 * 根据unionid获取userid
	 */
	public static final String GET_USEEID_BY_UNIONID = "https://oapi.dingtalk.com/user/getUseridByUnionid";
	/**
	 * 获取部门用户详情
	 */
	public static final String USER_LIST_BY_PAGE = "https://oapi.dingtalk.com/user/listbypage";
	/**
	 * 获取管理员列表
	 */
	public static final String GET_ADMIN = "https://oapi.dingtalk.com/user/get_admin";
	/**
	 * 获取管理员通讯录权限范围
	 */
	public static final String GET_ADMIN_SCOPE = "https://oapi.dingtalk.com/topapi/user/get_admin_scope";
	/**
	 * 根据unionid获取userid
	 */
	public static final String GET_USERID_BY_UNIONID = "https://oapi.dingtalk.com/user/getUseridByUnionid";

	/**
	 * 获取部门列表
	 */
	public static final String DEPT_LIST = "https://oapi.dingtalk.com/department/list";

	/**
	 * 获取部门详情
	 */
	public static final String DEPT_DETAIL_GET = "https://oapi.dingtalk.com/department/get";
	/**
	 * 查询部门的所有上级父部门路径
	 */
	public static final String DEPT_PARENT_LIST = "https://oapi.dingtalk.com/department/list_parent_depts_by_dept";
	/**
	 * 获取角色列表
	 */
	public static final String ROLE_LIST = "https://oapi.dingtalk.com/topapi/role/list";
	/**
	 * 获取角色下的员工列表
	 */
	public static final String ROLE_SIMPLELIST = "https://oapi.dingtalk.com/topapi/role/simplelist";
	/**
	 * 获取角色组
	 */
	public static final String GET_ROLE_GROUP = "https://oapi.dingtalk.com/topapi/role/getrolegroup";
	/**
	 * 获取角色详情
	 */
	public static final String ROLE_GETROLE = "https://oapi.dingtalk.com/topapi/role/getrole";


}
